class CreateDetalleFacturas < ActiveRecord::Migration
  def self.up
    create_table :detalle_facturas do |t|
      t.column  :factura_id,  :integer,  :null => false
      t.column  :producto_id, :integer,  :null => false
      t.column  :unidades,    :integer,  :null => false
      t.column  :precio_unitario,  :decimal,  :null => true
      t.column  :litraje_mls, :integer
      t.column  :created_at,  :datetime
      t.column  :updated_at,  :datetime
    end
  end

  def self.down
    drop_table :detalle_facturas
  end
end
